<!-- leksem translate -->
<?php $this->render('common/headerPopup'); ?>
	<div class="container">
        <?php $this->render('common/errors'); ?>
        <h3>Translate leksem</h3>
		<form action="index.php?cont=leks&amp;act=dotranslate" method="post">
			<input type="hidden" name="leksId" value="<?php echo $leksem->id; ?>">
			<table>
				<tr>
					<td>Leksem to tranlate:</td>
					<td class="pad"><?php echo $leksem->name; ?></td>
				</tr>
				<tr>
					<td>Leksem original value:</td>
					<td class="pad"><?php echo $leksem->value; ?></td>
				</tr>
                <tr>
					<td>Leksem context:</td>
					<td class="pad"><?php echo (empty($leksem->context) ? 'no context' : $leksem->context); ?></td>
				</tr>
				<tr>
					<td>Choose language:</td>
					<td>
						<select name="dict" class="ddown">
							<option value="0" selected="selected">choose language</option>
							<?php foreach ($dicts as $dict): ?>
								<option value="<?php echo $dict->id ?>"><?php echo $dict->name; ?></option>
							<?php endforeach; ?>
						</select>
					</td>
				</tr>
				<tr>
					<td>Translated text:</td>
					<td>
						<textarea name="text" class="brdr-gray" rows="10" cols="70"></textarea>
					</td>
				</tr>
				<tr>
					<td colspan="2" align="right"><input class="button" type="submit" name="doTranslate" value="Translate"/> or <a style="cursor: pointer;" href="index.php?cont=leks">Cancel</a></td>
				</tr>
			</table>
		</form>
	</div>
<?php $this->render('common/footerPopup')?>